package spring.boot.fastdep.jwt.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import spring.boot.fastdep.jwt.common.Results;

@RestController
public class HelloController {

    @GetMapping("hello")
    @RequiresPermissions("hello")
    public Results hello() {
        Object hello = "Hello World !";
        return Results.success(hello);
    }

}
